<extend name="Layout/ins_popup" />
<block name="content">
	<div class="popup-fixed">
		<div class="popup-header ">
			<div class="pull-left">
				<h1>添加会议室</h1>
			</div>
			<div class="pull-right">
				<a id="btn_save" class="btn">确定</a>
				<a onclick="myclose();" class="btn btn-return">关闭</a>
			</div>
		</div>
		<div class="popup-body" style="height: 420px;overflow-y: auto;">
			<form id="form_data" name="form_data"method="post" >
				<input type="hidden" name="ajax" id="ajax" value="1">
				<input type="hidden" name="opmode" id="opmode" value="add">
				
					<label class="input-label" for="name">会议室名称*：</label>
					
						<input class="input"  type="text" id="name" name="name" check="required" info="请输入名称">
					</div>
				</div>
				
					<label class="input-label" for="sort">会议室顺序：</label>
					
						<input class="input"  type="text" id="sort" name="sort" >
					</div>
				</div>
				
					<label class="input-label" for="num">可容纳人数：</label>
					
						<input class="input"  type="text" id="num" name="num" >
					</div>
				</div>
				
					<label class="input-label" for="addr">会议室地址：</label>
					
						<input class="input"  type="text" id="addr" name="addr" >
					</div>
				</div>
				
					<label class="input-label" for="media">是否有多媒体：</label>
					
						<select  class="input" name="media" id="media">
							<option  value="0">没有</option>
							<option value="1">有</option>
						</select>
					</div>
				</div>
				
					<label class="input-label" for="projector">是否有投影仪：</label>
					
						<select  class="input" name="projector" id="projector">
							<option  value="0">没有</option>
							<option value="1">有</option>
						</select>
					</div>
				</div>

				
					<label class="input-label" for="is_del">状态：</label>
					
						<select  class="input" name="is_del" id="is_del">
							<option  value="0">启用</option>
							<option value="1">禁用</option>
						</select>
					</div>
				</div>
			</form>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		var index = parent.layer.getFrameIndex(window.name);
		layui.use('global', function() {
			var $ = layui.jquery;
			$('#btn_save').on('click', function() {
				send_form('form_data', '{:url("saveroom")}', '', function(ret) {
					if (ret.status == 1) {
						parent.layer.msg(ret.info);						
						parent.location.reload(true);
					} else {
						layer.msg(ret.info);
						return false;
					}
				});
			});
		});
	</script>
</block>